\hypertarget{classdb_category}{
\section{db\-Category \-Class \-Reference}
\label{classdb_category}\index{db\-Category@{db\-Category}}
}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classdb_category_a772b8c55b241668e6031bb263f5d832f}{get\-All\-Categories} ()
\item 
\hyperlink{classdb_category_a86e23bd1f4d5b3b616ea11b6ac2d1c8c}{check\-Category\-I\-D} (\$c)
\item 
\hyperlink{classdb_category_a7fc3d9a38dbf98b9cce2961e298a9a86}{get\-Category\-I\-D} (\$c)
\item 
\hyperlink{classdb_category_af9a3ee1cae55fca49cdd6f9cc325a011}{get\-Category\-Name} (\$c)
\item 
\hyperlink{classdb_category_a9287137c4ed5d2383f8e098d7d8ce286}{delete\-Category\-I\-D} (\$c)
\end{DoxyCompactItemize}
\subsection*{\-Static \-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classdb_category_aea6c4d653e217f31256ded5783ed58f4}{create\-Table} ()
\item 
static \hyperlink{classdb_category_a4fb22ba86a2ad867f7e5ecd1b62e265f}{add\-Category} (\$c, \&\$id)
\item 
static \hyperlink{classdb_category_aaaca33ac319178544c7cc9df0d9f1578}{get\-All\-By\-I\-D} (\$id, \&\$output)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Communicates with the \hyperlink{class_student}{\-Student} control file to know which student data to get and set. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections

\begin{DoxyCopyright}{\-Copyright}
2011 by \-Dan, \-Steven, \-Brice, \-Mike, and \-Aaron. \-This program is part of \hyperlink{class_internship}{\-Internship} 2 \-Career, which is free software. \-It comes with absolutely no warranty. \-You can redistribute or modify it under the terms of the \-G\-N\-U \-General \-Public \-License as published by the \-Free \-Software \-Foundation (\-For more information, see $<$\href{http://www.gnu.org/licenses/}{\tt http\-://www.\-gnu.\-org/licenses/}).
\end{DoxyCopyright}
\begin{DoxyVersion}{\-Version}
\-February 8, 2011
\end{DoxyVersion}
\begin{DoxyAuthor}{\-Author}
\-Brice \-Rader and \-Aaron \-Jarzombeck \-This is the database file. \-It controls the category file to list all categories and to add or delete a category into the database. \-It is the only file that has the \-S\-Q\-L queries and \-My\-S\-Q\-L connections 
\end{DoxyAuthor}


\-Definition at line 25 of file db\-Category.\-php.



\subsection{\-Member \-Function \-Documentation}
\hypertarget{classdb_category_a4fb22ba86a2ad867f7e5ecd1b62e265f}{
\index{db\-Category@{db\-Category}!add\-Category@{add\-Category}}
\index{add\-Category@{add\-Category}!dbCategory@{db\-Category}}
\subsubsection[{add\-Category}]{\setlength{\rightskip}{0pt plus 5cm}static add\-Category (
\begin{DoxyParamCaption}
\item[{\$}]{c, }
\item[{\&\$}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_category_a4fb22ba86a2ad867f7e5ecd1b62e265f}
\-Add's a category to the database 
\begin{DoxyParams}[1]{\-Parameters}
category & {\em \$c} & \\
\hline
category & {\em \$id} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
new category added to database 
\end{DoxyReturn}


\-Definition at line 73 of file db\-Category.\-php.

\hypertarget{classdb_category_a86e23bd1f4d5b3b616ea11b6ac2d1c8c}{
\index{db\-Category@{db\-Category}!check\-Category\-I\-D@{check\-Category\-I\-D}}
\index{check\-Category\-I\-D@{check\-Category\-I\-D}!dbCategory@{db\-Category}}
\subsubsection[{check\-Category\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}check\-Category\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_category_a86e23bd1f4d5b3b616ea11b6ac2d1c8c}
\-Checks category \-I\-D 
\begin{DoxyParams}[1]{\-Parameters}
contact & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
checks to see what contacts are in the database 
\end{DoxyReturn}


\-Definition at line 101 of file db\-Category.\-php.

\hypertarget{classdb_category_aea6c4d653e217f31256ded5783ed58f4}{
\index{db\-Category@{db\-Category}!create\-Table@{create\-Table}}
\index{create\-Table@{create\-Table}!dbCategory@{db\-Category}}
\subsubsection[{create\-Table}]{\setlength{\rightskip}{0pt plus 5cm}static create\-Table (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_category_aea6c4d653e217f31256ded5783ed58f4}


\-Definition at line 27 of file db\-Category.\-php.

\hypertarget{classdb_category_a9287137c4ed5d2383f8e098d7d8ce286}{
\index{db\-Category@{db\-Category}!delete\-Category\-I\-D@{delete\-Category\-I\-D}}
\index{delete\-Category\-I\-D@{delete\-Category\-I\-D}!dbCategory@{db\-Category}}
\subsubsection[{delete\-Category\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}delete\-Category\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_category_a9287137c4ed5d2383f8e098d7d8ce286}
\-Delete's category from database 
\begin{DoxyParams}[1]{\-Parameters}
contact & {\em \$c} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
categories in database 
\end{DoxyReturn}


\-Definition at line 152 of file db\-Category.\-php.

\hypertarget{classdb_category_aaaca33ac319178544c7cc9df0d9f1578}{
\index{db\-Category@{db\-Category}!get\-All\-By\-I\-D@{get\-All\-By\-I\-D}}
\index{get\-All\-By\-I\-D@{get\-All\-By\-I\-D}!dbCategory@{db\-Category}}
\subsubsection[{get\-All\-By\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}static get\-All\-By\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{id, }
\item[{\&\$}]{output}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}static\mbox{]}}}}
\label{classdb_category_aaaca33ac319178544c7cc9df0d9f1578}

\begin{DoxyParams}[1]{\-Parameters}
contact & {\em \$id} & \\
\hline
\end{DoxyParams}


\-Definition at line 176 of file db\-Category.\-php.

\hypertarget{classdb_category_a772b8c55b241668e6031bb263f5d832f}{
\index{db\-Category@{db\-Category}!get\-All\-Categories@{get\-All\-Categories}}
\index{get\-All\-Categories@{get\-All\-Categories}!dbCategory@{db\-Category}}
\subsubsection[{get\-All\-Categories}]{\setlength{\rightskip}{0pt plus 5cm}get\-All\-Categories (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classdb_category_a772b8c55b241668e6031bb263f5d832f}
\-Gets all of the categories in the database \begin{DoxyReturn}{\-Returns}
categories 
\end{DoxyReturn}


\-Definition at line 52 of file db\-Category.\-php.

\hypertarget{classdb_category_a7fc3d9a38dbf98b9cce2961e298a9a86}{
\index{db\-Category@{db\-Category}!get\-Category\-I\-D@{get\-Category\-I\-D}}
\index{get\-Category\-I\-D@{get\-Category\-I\-D}!dbCategory@{db\-Category}}
\subsubsection[{get\-Category\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}get\-Category\-I\-D (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_category_a7fc3d9a38dbf98b9cce2961e298a9a86}
\-Get category \-I\-D from the database 
\begin{DoxyParams}{\-Parameters}
{\em \$category\-I\-D} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
\-I\-D 
\end{DoxyReturn}


\-Definition at line 122 of file db\-Category.\-php.

\hypertarget{classdb_category_af9a3ee1cae55fca49cdd6f9cc325a011}{
\index{db\-Category@{db\-Category}!get\-Category\-Name@{get\-Category\-Name}}
\index{get\-Category\-Name@{get\-Category\-Name}!dbCategory@{db\-Category}}
\subsubsection[{get\-Category\-Name}]{\setlength{\rightskip}{0pt plus 5cm}get\-Category\-Name (
\begin{DoxyParamCaption}
\item[{\$}]{c}
\end{DoxyParamCaption}
)}}
\label{classdb_category_af9a3ee1cae55fca49cdd6f9cc325a011}
\-Get category name from the database 
\begin{DoxyParams}{\-Parameters}
{\em \$\-Category\-Name} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
\hyperlink{class_category}{\-Category} 
\end{DoxyReturn}


\-Definition at line 134 of file db\-Category.\-php.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/db-\/control/\hyperlink{db_category_8php}{db\-Category.\-php}\end{DoxyCompactItemize}
